<?php if(!class_exists("View", false)) exit("no direct access allowed");?><!-- 主内容区 -->
    <main class="container mx-auto px-4 pt-24 pb-16">
        <!-- 页面标题和搜索区 -->
        <section class="mb-10">
            <div class="text-center mb-8">
                <h1 class="text-[clamp(1.8rem,4vw,3rem)] font-bold mb-3">
                    <span class="text-gradient">热门推荐</span>
                </h1>
                <p class="text-gray-500 max-w-2xl mx-auto">发现最受欢迎的应用程序，根据用户评分和使用频率精心挑选，帮您提高工作效率和生活品质</p>
            </div>
            
            <div class="relative max-w-2xl mx-auto mb-10">
                <input type="text" placeholder="搜索热门应用..." class="w-full pl-12 pr-4 py-3 rounded-full border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all shadow-sm">
                <i class="fa fa-search absolute left-5 top-1/2 -translate-y-1/2 text-gray-400 text-lg"></i>
            </div>
            
            <!-- 分类筛选器 -->
            <div class="flex items-center justify-between mb-8 overflow-x-auto scrollbar-hide pb-2">
                <h2 class="text-lg font-bold whitespace-nowrap mr-4">分类筛选:</h2>
                <div class="flex space-x-2">
                    <button class="bg-primary text-white px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap shadow-md hover:shadow-lg transition-all">全部</button>
                    <button class="bg-white text-gray-700 px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap shadow-sm hover:shadow-md hover:bg-gray-50 transition-all">办公效率</button>
                    <button class="bg-white text-gray-700 px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap shadow-sm hover:shadow-md hover:bg-gray-50 transition-all">创意设计</button>
                    <button class="bg-white text-gray-700 px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap shadow-sm hover:shadow-md hover:bg-gray-50 transition-all">开发工具</button>
                    <button class="bg-white text-gray-700 px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap shadow-sm hover:shadow-md hover:bg-gray-50 transition-all">生活娱乐</button>
                    <button class="bg-white text-gray-700 px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap shadow-sm hover:shadow-md hover:bg-gray-50 transition-all">学习教育</button>
                </div>
            </div>
        </section>

        <!-- 推荐榜单 -->
        <section class="mb-16">
            <div class="flex items-center justify-between mb-6">
                <h2 class="text-xl font-bold">今日热门</h2>
                <a href="#" class="text-primary hover:text-secondary transition-colors text-sm font-medium flex items-center">
                    查看全部 <i class="fa fa-arrow-right ml-1"></i>
                </a>
            </div>
            
            <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
                <!-- 应用卡片 1 -->
                <div class="bg-white rounded-xl overflow-hidden shadow-md hover:shadow-xl transition-all card-zoom">
                    <div class="relative">
                        <img src="https://picsum.photos/id/0/400/200" alt="文档协作工具" class="w-full h-40 object-cover">
                        <div class="absolute top-3 left-3 bg-danger text-white text-xs font-bold px-2 py-1 rounded">
                            榜首
                        </div>
                        <button class="absolute top-3 right-3 bg-white/80 backdrop-blur-sm text-gray-700 w-8 h-8 rounded-full flex items-center justify-center hover:bg-white transition-colors">
                            <i class="fa fa-heart-o"></i>
                        </button>
                    </div>
                    <div class="p-5">
                        <div class="flex items-center justify-between mb-3">
                            <div class="flex items-center">
                                <div class="w-10 h-10 rounded-lg bg-blue-100 flex items-center justify-center mr-3">
                                    <i class="fa fa-file-text text-blue-600"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold">文档协作工具</h3>
                                    <p class="text-xs text-gray-500">办公效率</p>
                                </div>
                            </div>
                            <div class="flex items-center">
                                <i class="fa fa-star text-yellow-400 text-sm"></i>
                                <span class="text-sm font-medium ml-1">4.9</span>
                            </div>
                        </div>
                        
                        <p class="text-sm text-gray-600 mb-4 line-clamp-2">多人实时协作编辑文档，支持版本控制和权限管理，提升团队工作效率。</p>
                        
                        <div class="flex items-center justify-between">
                            <span class="text-xs text-gray-500">今日下载: <span class="text-primary font-medium">1,248</span></span>
                            <button class="bg-primary/10 hover:bg-primary/20 text-primary px-3 py-1 rounded-lg text-sm font-medium transition-colors">
                                获取
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 应用卡片 2 -->
                <div class="bg-white rounded-xl overflow-hidden shadow-md hover:shadow-xl transition-all card-zoom">
                    <div class="relative">
                        <img src="https://picsum.photos/id/160/400/200" alt="创意设计套件" class="w-full h-40 object-cover">
                        <div class="absolute top-3 left-3 bg-primary text-white text-xs font-bold px-2 py-1 rounded">
                            榜眼
                        </div>
                        <button class="absolute top-3 right-3 bg-white/80 backdrop-blur-sm text-gray-700 w-8 h-8 rounded-full flex items-center justify-center hover:bg-white transition-colors">
                            <i class="fa fa-heart-o"></i>
                        </button>
                    </div>
                    <div class="p-5">
                        <div class="flex items-center justify-between mb-3">
                            <div class="flex items-center">
                                <div class="w-10 h-10 rounded-lg bg-purple-100 flex items-center justify-center mr-3">
                                    <i class="fa fa-paint-brush text-purple-600"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold">创意设计套件</h3>
                                    <p class="text-xs text-gray-500">创意设计</p>
                                </div>
                            </div>
                            <div class="flex items-center">
                                <i class="fa fa-star text-yellow-400 text-sm"></i>
                                <span class="text-sm font-medium ml-1">4.8</span>
                            </div>
                        </div>
                        
                        <p class="text-sm text-gray-600 mb-4 line-clamp-2">一站式设计解决方案，包含矢量图形、图片编辑和原型设计工具。</p>
                        
                        <div class="flex items-center justify-between">
                            <span class="text-xs text-gray-500">今日下载: <span class="text-primary font-medium">986</span></span>
                            <button class="bg-primary/10 hover:bg-primary/20 text-primary px-3 py-1 rounded-lg text-sm font-medium transition-colors">
                                获取
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 应用卡片 3 -->
                <div class="bg-white rounded-xl overflow-hidden shadow-md hover:shadow-xl transition-all card-zoom">
                    <div class="relative">
                        <img src="https://picsum.photos/id/180/400/200" alt="代码编辑器" class="w-full h-40 object-cover">
                        <div class="absolute top-3 left-3 bg-amber-600 text-white text-xs font-bold px-2 py-1 rounded">
                            探花
                        </div>
                        <button class="absolute top-3 right-3 bg-white/80 backdrop-blur-sm text-gray-700 w-8 h-8 rounded-full flex items-center justify-center hover:bg-white transition-colors">
                            <i class="fa fa-heart text-danger"></i>
                        </button>
                    </div>
                    <div class="p-5">
                        <div class="flex items-center justify-between mb-3">
                            <div class="flex items-center">
                                <div class="w-10 h-10 rounded-lg bg-green-100 flex items-center justify-center mr-3">
                                    <i class="fa fa-code text-green-600"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold">代码编辑器</h3>
                                    <p class="text-xs text-gray-500">开发工具</p>
                                </div>
                            </div>
                            <div class="flex items-center">
                                <i class="fa fa-star text-yellow-400 text-sm"></i>
                                <span class="text-sm font-medium ml-1">4.7</span>
                            </div>
                        </div>
                        
                        <p class="text-sm text-gray-600 mb-4 line-clamp-2">轻量级但功能强大的代码编辑器，支持多种编程语言和插件扩展。</p>
                        
                        <div class="flex items-center justify-between">
                            <span class="text-xs text-gray-500">今日下载: <span class="text-primary font-medium">752</span></span>
                            <button class="bg-primary/10 hover:bg-primary/20 text-primary px-3 py-1 rounded-lg text-sm font-medium transition-colors">
                                获取
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 应用卡片 4 -->
                <div class="bg-white rounded-xl overflow-hidden shadow-md hover:shadow-xl transition-all card-zoom">
                    <div class="relative">
                        <img src="https://picsum.photos/id/96/400/200" alt="时间管理工具" class="w-full h-40 object-cover">
                        <button class="absolute top-3 right-3 bg-white/80 backdrop-blur-sm text-gray-700 w-8 h-8 rounded-full flex items-center justify-center hover:bg-white transition-colors">
                            <i class="fa fa-heart-o"></i>
                        </button>
                    </div>
                    <div class="p-5">
                        <div class="flex items-center justify-between mb-3">
                            <div class="flex items-center">
                                <div class="w-10 h-10 rounded-lg bg-orange-100 flex items-center justify-center mr-3">
                                    <i class="fa fa-clock-o text-orange-600"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold">时间管理工具</h3>
                                    <p class="text-xs text-gray-500">办公效率</p>
                                </div>
                            </div>
                            <div class="flex items-center">
                                <i class="fa fa-star text-yellow-400 text-sm"></i>
                                <span class="text-sm font-medium ml-1">4.6</span>
                            </div>
                        </div>
                        
                        <p class="text-sm text-gray-600 mb-4 line-clamp-2">智能规划日程，番茄工作法专注模式，帮助您高效利用时间。</p>
                        
                        <div class="flex items-center justify-between">
                            <span class="text-xs text-gray-500">今日下载: <span class="text-primary font-medium">631</span></span>
                            <button class="bg-primary/10 hover:bg-primary/20 text-primary px-3 py-1 rounded-lg text-sm font-medium transition-colors">
                                获取
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- 分类热门 -->
        <section class="mb-16">
            <div class="flex items-center justify-between mb-6">
                <h2 class="text-xl font-bold">分类热门</h2>
                <a href="#" class="text-primary hover:text-secondary transition-colors text-sm font-medium flex items-center">
                    更多分类 <i class="fa fa-arrow-right ml-1"></i>
                </a>
            </div>
            
            <!-- 办公效率 -->
            <div class="mb-10">
                <div class="flex items-center mb-4">
                    <div class="w-8 h-8 rounded-lg bg-blue-100 flex items-center justify-center mr-2">
                        <i class="fa fa-briefcase text-blue-600"></i>
                    </div>
                    <h3 class="font-bold">办公效率</h3>
                </div>
                
                <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
                    <div class="bg-white rounded-lg p-4 flex items-center shadow-sm hover:shadow-md transition-all">
                        <div class="w-12 h-12 rounded-lg bg-blue-100 flex items-center justify-center mr-4 flex-shrink-0">
                            <i class="fa fa-calendar text-blue-600 text-xl"></i>
                        </div>
                        <div class="flex-grow">
                            <h4 class="font-medium text-sm">智能日程助手</h4>
                            <div class="flex items-center mt-1">
                                <div class="flex text-yellow-400 text-xs">
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star-half-o"></i>
                                </div>
                                <span class="text-xs text-gray-500 ml-2">4.5 (1.2k)</span>
                            </div>
                        </div>
                        <button class="ml-2 text-primary hover:text-secondary transition-colors">
                            <i class="fa fa-download"></i>
                        </button>
                    </div>
                    
                    <div class="bg-white rounded-lg p-4 flex items-center shadow-sm hover:shadow-md transition-all">
                        <div class="w-12 h-12 rounded-lg bg-blue-100 flex items-center justify-center mr-4 flex-shrink-0">
                            <i class="fa fa-envelope text-blue-600 text-xl"></i>
                        </div>
                        <div class="flex-grow">
                            <h4 class="font-medium text-sm">邮件管理大师</h4>
                            <div class="flex items-center mt-1">
                                <div class="flex text-yellow-400 text-xs">
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star-o"></i>
                                </div>
                                <span class="text-xs text-gray-500 ml-2">4.0 (856)</span>
                            </div>
                        </div>
                        <button class="ml-2 text-primary hover:text-secondary transition-colors">
                            <i class="fa fa-download"></i>
                        </button>
                    </div>
                    
                    <div class="bg-white rounded-lg p-4 flex items-center shadow-sm hover:shadow-md transition-all">
                        <div class="w-12 h-12 rounded-lg bg-blue-100 flex items-center justify-center mr-4 flex-shrink-0">
                            <i class="fa fa-tasks text-blue-600 text-xl"></i>
                        </div>
                        <div class="flex-grow">
                            <h4 class="font-medium text-sm">项目管理工具</h4>
                            <div class="flex items-center mt-1">
                                <div class="flex text-yellow-400 text-xs">
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                </div>
                                <span class="text-xs text-gray-500 ml-2">4.9 (2.3k)</span>
                            </div>
                        </div>
                        <button class="ml-2 text-primary hover:text-secondary transition-colors">
                            <i class="fa fa-download"></i>
                        </button>
                    </div>
                    
                    <div class="bg-white rounded-lg p-4 flex items-center shadow-sm hover:shadow-md transition-all">
                        <div class="w-12 h-12 rounded-lg bg-blue-100 flex items-center justify-center mr-4 flex-shrink-0">
                            <i class="fa fa-bar-chart text-blue-600 text-xl"></i>
                        </div>
                        <div class="flex-grow">
                            <h4 class="font-medium text-sm">数据分析套件</h4>
                            <div class="flex items-center mt-1">
                                <div class="flex text-yellow-400 text-xs">
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star-half-o"></i>
                                    <i class="fa fa-star-o"></i>
                                </div>
                                <span class="text-xs text-gray-500 ml-2">3.5 (542)</span>
                            </div>
                        </div>
                        <button class="ml-2 text-primary hover:text-secondary transition-colors">
                            <i class="fa fa-download"></i>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 创意设计 -->
            <div>
                <div class="flex items-center mb-4">
                    <div class="w-8 h-8 rounded-lg bg-purple-100 flex items-center justify-center mr-2">
                        <i class="fa fa-paint-brush text-purple-600"></i>
                    </div>
                    <h3 class="font-bold">创意设计</h3>
                </div>
                
                <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
                    <div class="bg-white rounded-lg p-4 flex items-center shadow-sm hover:shadow-md transition-all">
                        <div class="w-12 h-12 rounded-lg bg-purple-100 flex items-center justify-center mr-4 flex-shrink-0">
                            <i class="fa fa-camera text-purple-600 text-xl"></i>
                        </div>
                        <div class="flex-grow">
                            <h4 class="font-medium text-sm">图片编辑大师</h4>
                            <div class="flex items-center mt-1">
                                <div class="flex text-yellow-400 text-xs">
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star-half-o"></i>
                                </div>
                                <span class="text-xs text-gray-500 ml-2">4.7 (3.1k)</span>
                            </div>
                        </div>
                        <button class="ml-2 text-primary hover:text-secondary transition-colors">
                            <i class="fa fa-download"></i>
                        </button>
                    </div>
                    
                    <div class="bg-white rounded-lg p-4 flex items-center shadow-sm hover:shadow-md transition-all">
                        <div class="w-12 h-12 rounded-lg bg-purple-100 flex items-center justify-center mr-4 flex-shrink-0">
                            <i class="fa fa-font text-purple-600 text-xl"></i>
                        </div>
                        <div class="flex-grow">
                            <h4 class="font-medium text-sm">字体管理工具</h4>
                            <div class="flex items-center mt-1">
                                <div class="flex text-yellow-400 text-xs">
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star-o"></i>
                                </div>
                                <span class="text-xs text-gray-500 ml-2">4.2 (1.5k)</span>
                            </div>
                        </div>
                        <button class="ml-2 text-primary hover:text-secondary transition-colors">
                            <i class="fa fa-download"></i>
                        </button>
                    </div>
                    
                    <div class="bg-white rounded-lg p-4 flex items-center shadow-sm hover:shadow-md transition-all">
                        <div class="w-12 h-12 rounded-lg bg-purple-100 flex items-center justify-center mr-4 flex-shrink-0">
                            <i class="fa fa-object-group text-purple-600 text-xl"></i>
                        </div>
                        <div class="flex-grow">
                            <h4 class="font-medium text-sm">UI设计工具</h4>
                            <div class="flex items-center mt-1">
                                <div class="flex text-yellow-400 text-xs">
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                </div>
                                <span class="text-xs text-gray-500 ml-2">4.8 (2.7k)</span>
                            </div>
                        </div>
                        <button class="ml-2 text-primary hover:text-secondary transition-colors">
                            <i class="fa fa-download"></i>
                        </button>
                    </div>
                    
                    <div class="bg-white rounded-lg p-4 flex items-center shadow-sm hover:shadow-md transition-all">
                        <div class="w-12 h-12 rounded-lg bg-purple-100 flex items-center justify-center mr-4 flex-shrink-0">
                            <i class="fa fa-music text-purple-600 text-xl"></i>
                        </div>
                        <div class="flex-grow">
                            <h4 class="font-medium text-sm">音频编辑工具</h4>
                            <div class="flex items-center mt-1">
                                <div class="flex text-yellow-400 text-xs">
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star-half-o"></i>
                                    <i class="fa fa-star-o"></i>
                                </div>
                                <span class="text-xs text-gray-500 ml-2">3.7 (984)</span>
                            </div>
                        </div>
                        <button class="ml-2 text-primary hover:text-secondary transition-colors">
                            <i class="fa fa-download"></i>
                        </button>
                    </div>
                </div>
            </div>
        </section>

        <!-- 推荐理由 -->
        <section class="mb-16">
            <h2 class="text-xl font-bold mb-6">为什么推荐这些应用</h2>
            
            <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-all">
                    <div class="w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mb-4">
                        <i class="fa fa-users text-primary text-2xl"></i>
                    </div>
                    <h3 class="font-bold text-lg mb-2">用户好评</h3>
                    <p class="text-gray-600 text-sm">基于数千名真实用户的评价和反馈，评分均在4.0以上，口碑有保障。</p>
                </div>
                
                <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-all">
                    <div class="w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mb-4">
                        <i class="fa fa-line-chart text-primary text-2xl"></i>
                    </div>
                    <h3 class="font-bold text-lg mb-2">使用广泛</h3>
                    <p class="text-gray-600 text-sm">下载量和活跃度均处于同类应用前列，受到专业人士和普通用户的青睐。</p>
                </div>
                
                <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-all">
                    <div class="w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mb-4">
                        <i class="fa fa-rocket text-primary text-2xl"></i>
                    </div>
                    <h3 class="font-bold text-lg mb-2">持续更新</h3>
                    <p class="text-gray-600 text-sm">开发团队积极维护，定期更新功能和修复问题，提供良好的使用体验。</p>
                </div>
            </div>
        </section>

        <!-- 下载趋势 -->
        <section>
            <div class="bg-white rounded-xl shadow-md p-6">
                <div class="flex items-center justify-between mb-6">
                    <h2 class="text-xl font-bold">热门应用下载趋势</h2>
                    <div class="flex space-x-2">
                        <button class="text-xs bg-primary/10 text-primary px-3 py-1 rounded-full hover:bg-primary/20 transition-colors active">周</button>
                        <button class="text-xs bg-gray-100 text-gray-600 px-3 py-1 rounded-full hover:bg-gray-200 transition-colors">月</button>
                        <button class="text-xs bg-gray-100 text-gray-600 px-3 py-1 rounded-full hover:bg-gray-200 transition-colors">年</button>
                    </div>
                </div>
                <div class="h-72">
                    <canvas id="downloadChart"></canvas>
                </div>
            </div>
        </section>
    </main>

    <!-- 页脚 -->
    <footer class="bg-dark text-white py-12">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8 mb-8">
                <div>
                    <div class="flex items-center space-x-2 mb-4">
                        <i class="fa fa-star text-primary text-2xl"></i>
                        <h3 class="text-xl font-bold">应用管理中心</h3>
                    </div>
                    <p class="text-gray-400 text-sm">发现优质应用，提升工作效率，改善生活品质。</p>
                </div>
                
                <div>
                    <h4 class="font-bold mb-4">快速链接</h4>
                    <ul class="space-y-2 text-gray-400 text-sm">
                        <li><a href="#" class="hover:text-primary transition-colors">应用库</a></li>
                        <li><a href="#" class="hover:text-primary transition-colors">热门推荐</a></li>
                        <li><a href="#" class="hover:text-primary transition-colors">分类导航</a></li>
                        <li><a href="#" class="hover:text-primary transition-colors">使用统计</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="font-bold mb-4">支持</h4>
                    <ul class="space-y-2 text-gray-400 text-sm">
                        <li><a href="#" class="hover:text-primary transition-colors">帮助中心</a></li>
                        <li><a href="#" class="hover:text-primary transition-colors">反馈建议</a></li>
                        <li><a href="#" class="hover:text-primary transition-colors">联系我们</a></li>
                        <li><a href="#" class="hover:text-primary transition-colors">隐私政策</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="font-bold mb-4">关注我们</h4>
                    <div class="flex space-x-4 mb-4">
                        <a href="#" class="w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center hover:bg-primary transition-colors">
                            <i class="fa fa-weibo"></i>
                        </a>
                        <a href="#" class="w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center hover:bg-primary transition-colors">
                            <i class="fa fa-wechat"></i>
                        </a>
                        <a href="#" class="w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center hover:bg-primary transition-colors">
                            <i class="fa fa-github"></i>
                        </a>
                    </div>
                    <p class="text-gray-400 text-sm">订阅获取最新应用推荐</p>
                    <div class="mt-2 flex">
                        <input type="email" placeholder="您的邮箱" class="px-3 py-2 bg-gray-700 text-white text-sm rounded-l-lg focus:outline-none focus:ring-1 focus:ring-primary flex-grow">
                        <button class="bg-primary hover:bg-secondary px-3 py-2 text-sm rounded-r-lg transition-colors">
                            订阅
                        </button>
                    </div>
                </div>
            </div>
            
            <div class="border-t border-gray-700 pt-6 text-center text-gray-500 text-sm">
                <p>© 2023 应用管理中心. 保留所有权利.</p>
            </div>
        </div>
    </footer>

    <!-- 通知提示 -->
    <div id="notification" class="fixed top-20 right-5 z-50 hidden px-6 py-3 rounded-lg shadow-lg transform transition-all duration-300 translate-x-full">
        <div class="flex items-center">
            <i id="notification-icon" class="mr-3 text-xl"></i>
            <span id="notification-message"></span>
        </div>
    </div>

    <!-- JavaScript -->
    <script>
        // 初始化图表
        document.addEventListener('DOMContentLoaded', function() {
            // 下载趋势图表
            const ctx = document.getElementById('downloadChart').getContext('2d');
            const downloadChart = new Chart(ctx, {
                type: 'line',
                data: {
                    labels: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
                    datasets: [
                        {
                            label: '文档协作工具',
                            data: [450, 520, 490, 680, 720, 850, 980],
                            borderColor: '#4F46E5',
                            backgroundColor: 'rgba(79, 70, 229, 0.1)',
                            tension: 0.4,
                            fill: true
                        },
                        {
                            label: '创意设计套件',
                            data: [320, 380, 420, 450, 580, 620, 750],
                            borderColor: '#8B5CF6',
                            backgroundColor: 'rgba(139, 92, 246, 0.1)',
                            tension: 0.4,
                            fill: true
                        },
                        {
                            label: '代码编辑器',
                            data: [280, 310, 350, 420, 480, 520, 630],
                            borderColor: '#10B981',
                            backgroundColor: 'rgba(16, 185, 129, 0.1)',
                            tension: 0.4,
                            fill: true
                        }
                    ]
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    plugins: {
                        legend: {
                            position: 'top',
                        }
                    },
                    scales: {
                        y: {
                            beginAtZero: true,
                            grid: {
                                drawBorder: false
                            }
                        },
                        x: {
                            grid: {
                                display: false
                            }
                        }
                    }
                }
            });

            // 导航栏滚动效果
            window.addEventListener('scroll', function() {
                const header = document.querySelector('header');
                if (window.scrollY > 10) {
                    header.classList.add('py-2', 'shadow');
                    header.classList.remove('py-3', 'shadow-sm');
                } else {
                    header.classList.add('py-3', 'shadow-sm');
                    header.classList.remove('py-2', 'shadow');
                }
            });

            // 获取按钮点击事件
            document.querySelectorAll('button:contains("获取")').forEach(button => {
                button.addEventListener('click', function() {
                    const appName = this.closest('.bg-white').querySelector('h3, h4').textContent;
                    showNotification(`${appName} 已添加到下载队列`, 'success');
                });
            });
        });

        // 显示通知
        function showNotification(message, type = 'info') {
            const notificationEl = document.getElementById('notification');
            const iconEl = document.getElementById('notification-icon');
            const messageEl = document.getElementById('notification-message');
            
            // 设置通知类型样式
            notificationEl.className = 'fixed top-20 right-5 z-50 px-6 py-3 rounded-lg shadow-lg transform transition-all duration-300';
            iconEl.className = 'mr-3 text-xl';
            
            if (type === 'success') {
                notificationEl.classList.add('bg-success/10', 'border', 'border-success/30', 'text-success');
                iconEl.classList.add('fa', 'fa-check-circle');
            } else if (type === 'error') {
                notificationEl.classList.add('bg-danger/10', 'border', 'border-danger/30', 'text-danger');
                iconEl.classList.add('fa', 'fa-exclamation-circle');
            } else {
                notificationEl.classList.add('bg-primary/10', 'border', 'border-primary/30', 'text-primary');
                iconEl.classList.add('fa', 'fa-info-circle');
            }
            
            messageEl.textContent = message;
            
            // 显示通知
            notificationEl.classList.remove('translate-x-full');
            notificationEl.classList.add('translate-x-0');
            
            // 3秒后隐藏
            setTimeout(() => {
                notificationEl.classList.remove('translate-x-0');
                notificationEl.classList.add('translate-x-full');
            }, 3000);
        }

        // 辅助函数：扩展contains选择器
        (function($) {
            $.expr[':'].contains = function(element, index, match) {
                return $(element).text().includes(match[3]);
            };
        })(jQuery);
    </script>